package com.zhouyu.examplemingle.fantype;

import java.util.List;

/**
 * @Description:
 */
public class FruitGenerator implements MyGenerateor<Long> {
  @Override
  public Long next() {
    System.out.println("哈哈哈,水果");
    return 1l;
  }

  @Override
  public <T> T generateMethod(T t) {
    System.out.println("泛型方法1");
    return t;
  }

  @Override
  public <E> void generateMethod2(List<E> e) {
    System.out.println("泛型方法2");
  }
}
